import request from "@/utils/request"

//获取社团列表
export function select(data){
  return request({
      method: 'POST',
      url: `/joinservice/join-clubs/getClubsByPage/${data.pageNum}/${data.pageSize}`,
      headers: {
        'Content-Type': 'application/json'
      },
      data
    }).then(res => res.data)
}

//根据id获取社团列表
export function selectId(clubId){
  return request({
      method: 'POST',
      url: `/joinservice/join-clubs/getClubs/${clubId}`,
      headers: {
        'Content-Type': 'application/json'
      },
    }).then(res => res.data)
}
